package cn.edu.scau.cmi.chenyipeng.comprehensive;

import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.stage.Stage;
import cn.edu.scau.cmi.chenyipeng.client.*;
import javafx.event.ActionEvent;

public class ComprehensiveController {

    @FXML
    private Button interPG_Button;

    @FXML
    private Button safe_Button;

    @FXML
    private Button singleton_Button;

    @FXML
    private Button abstractF_Button;

    @FXML
    private Button aoc_Button;

    @FXML
    private Button factory_Button;

    @FXML
    private Button aoo_Button;

    @FXML
    private Button simpleFactory_Button;

    @FXML
    private Button consistent_Button;

    @FXML
    private Button springhibernate_Button;

    @FXML
    void interProgrammingShow(ActionEvent event) {
    	InterProgrammingClient.main(null);;
    }

    @FXML
    void singletonShow(ActionEvent event) {
    	new SingletonClient().start(new Stage());
    }

    @FXML
    void sfShow(ActionEvent event) {
    	new SimpleFactoryClient().start(new Stage());
    }

    @FXML
    void factoryShow(ActionEvent event) {
    	new FactoryClient().start(new Stage());
    }

    @FXML
    void afShow(ActionEvent event) {
    	new AbsractFactoryClient().start(new Stage());
    }

    @FXML
    void aocShow(ActionEvent event) {
    	new AdapterOfClassClient().start(new Stage());
    }

    @FXML
    void aooShow(ActionEvent event) {
    	new AdapterOfObjectClient().start(new Stage());
    }

    @FXML
    void ccShow(ActionEvent event) {
    	new ConsistentCompositeClient().start(new Stage());
    }

    @FXML
    void scShow(ActionEvent event) {
    	new SafeCompositeClient().start(new Stage());
    }

    @FXML
    void shShow(ActionEvent event) {
    	new SpringClient().start(new Stage());
    }

}

